import request from '@/utils/request'
export function fetchListAll() {
  return request({
    url:'/type/listall',
    method:'get',
  })
}

export function fetchList(params) {
  return request({
    url:'/type/list',
    method:'get',
    params:params
  })
}
//取得该题型相关的subjectIds
export function fetchSubjectList(params) {
  return request({
    url:'/type/subjectlist',
    method:'get',
    params:params
  })
}

export function update(params) {
  return request({
    url:'/type/update',
    method:'post',
    params:params
  })
}

export function add(params) {
  return request({
    url:'/type/add',
    method:'post',
    params:params
  })
}
export function deletes(params) {
  return request({
    url:'/type/delete',
    method:'delete',
    params:params
  })
}
